#include <iostream>
using namespace std;

class A{
public:
	int a = 5;
	A(){ cout << "IN A()" << endl; }
	~A(){ cout << "IN ~A()" << endl; }
};

A f(A test){
	test.a = 10;
	return test;
}

int main(){
	A a;
	cout << f(a).a;
	
}
